package com.wsk.service;

import com.wsk.bean2.UserInformation;

import java.util.Date;
import java.util.Map;

/**
 * Created by Maibenben on 2017/1/19.
 */
public interface LoginService<T> {
    boolean save(T t);

    boolean login(int id, String sql);

    boolean isNull(String sql);

    int getId(String sql);

    boolean updatePassword(T t);

    boolean ImageisEmpty(int id);

    String getPictureURL(int id);

    String getQRCode(int id);

    UserInformation getUserInformation(int id);

    boolean update(int id, String method, String s2);

    boolean updateBirthday(int id, Date date);

    boolean updateIntegral(int id, T t);

    Map getIntegralSource(int id);

    void addIntegralSource(T t);

    boolean getCheckIn(int id, String sql);

    boolean judgeFriend(int id, int id2);
}
